package com.ailargemodel.service;

import com.ailargemodel.common.BaseResponse;
import com.ailargemodel.pojo.User;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpSession;

/**
 * @author 喜洋洋
 * @description 针对表【user(存储学生相关的信息)】的数据库操作Service
 * @createDate 2024-07-28 15:43:44
 */

public interface UserService extends IService<User> {


     BaseResponse loginandregister(String name, String StudyId, HttpServletRequest request, HttpServletResponse response) throws NoApiKeyException, InputRequiredException;

     BaseResponse userLogOut(String studyId, HttpServletRequest request, HttpServletResponse response, String cookie);
     User getLoginUser(String sessionId);

}
